package com.chen.common.utils;

public class XssUtil {
    static public boolean detection(String info) {
        if (info.contains("eval") || info.contains("alert")) {
//            System.out.println("zxc");
            return true;
        }
        int i = info.indexOf("<"), j = -1;
        if (i >= 0) {
            j = info.indexOf(">", i);
        }
        return j > 0;
    }
}
